<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<div class="top">
    <button onclick="showJava()">JS调java方法</button>
    <div >JS调java方法结果：<span id="infoJava"></span></div>
    <div >java调JS方法结果：<span id="info"></span></div>
</div>
</body>
<script>
    var apps = 'test';
    function showJava() {
        console.log(showJava);
        document.getElementById("infoJava").innerText= apps.showInfo("java");
    }
    function show(a,b) {
        document.getElementById("info").innerText="a="+a+",b="+b;
    }
</script>
</html>